package cn.stronglink.suite.core.util;

//import com.taobao.api.ApiException;
//import com.taobao.api.DefaultTaobaoClient;
//import com.taobao.api.TaobaoClient;
//import com.taobao.api.request.AlibabaAliqinFcSmsNumSendRequest;
//import com.taobao.api.response.AlibabaAliqinFcSmsNumSendResponse;

public class SmsSender {
	
	final static String url = "http://gw.api.taobao.com/router/rest";
	final static String appkey = "24747617";
	final static String secret = "a0076263a3d73c12b0be62ba451b8d2b";
	
//	public static String send(String sign,String param,String recNum,String template) throws ApiException{
////		TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
////		AlibabaAliqinFcSmsNumSendRequest req = new AlibabaAliqinFcSmsNumSendRequest();
////		req.setExtend("");
//		req.setSmsType("normal");
//		req.setSmsFreeSignName(sign);
//		req.setSmsParamString(param);
//		req.setRecNum(recNum);
//		req.setSmsTemplateCode(template);
//		AlibabaAliqinFcSmsNumSendResponse rsp = client.execute(req);
//		if(rsp!=null&&rsp.getErrorCode()!=null&&!rsp.getErrorCode().equals("0")){
//			return rsp.getSubMsg()==null?"":rsp.getSubMsg();
//		}
//		return "0";
//	}

}
